package com.j2eefast.bussiness.contract.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.j2eefast.bussiness.contract.entity.BusDepreciationEntity;
import com.j2eefast.bussiness.contract.entity.BusEquipmentEntity;
import com.j2eefast.framework.sys.entity.SysUserEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>折旧管理</p>
 *
 * @author: summer
 * @date: 2021-06-06 17:41
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
public interface BusDepreciationMapper extends BaseMapper<BusDepreciationEntity> {



    public boolean deleteByIds(@Param("ids") Long[] ids);
    public boolean updateCheck(@Param("id") Long id, @Param("userId") Long userId);
    //查询用户信息
    public SysUserEntity getSysById(@Param("userId") Long userId);

    /**
     * 页面查询流程实例分页
     * @return
     */
    Page<BusDepreciationEntity> findPage(IPage<?> params,
                                       @Param("department") String department,
                                         @Param("department2") String department2,
                                         @Param("equipmentCode") String equipmentCode,
                                         @Param("equipmentCode2") String equipmentCode2,
                                         @Param("equipmentName") String equipmentName,
                                         @Param("equipmentModel") String equipmentModel,
                                         @Param("jingcanValue") String jingcanValue,
                                         @Param("age") String age,
                                         @Param("equipmentValue") String equipmentValue,
                                         @Param("worthValue") String worthValue,
                                         @Param("worth") String worth,
                                         @Param("monthDepreciation") String monthDepreciation,
                                         @Param("totalDepreciation") String totalDepreciation,
                                         @Param("beginTime") String beginTime,
                                         @Param("endTime") String endTime,
                                      @Param("sql_filter") String sql_filter);

    List<BusDepreciationEntity> findList(
//            @Param("name") String name,
//            @Param("ceoName") String ceoName,
//            @Param("paymentNuit") String paymentNuit,
//            @Param("contractSum") String contractSum,
//            @Param("projectName") String projectName,
            @Param("ids") Long[] ids,
            @Param("sql_filter") String sql_filter);

    BusDepreciationEntity getDepreciationInfo(@Param("equipmentCode")String equipmentCode);
}
